import express from 'express'
const router =express.Router()
import {Dialog,newDialog,allConversation,DeleteConversation,CheckConversation,historyMessage,TTS_audioTransform} from '../controller/deepSeekController.js'
import { authenticate } from '../middleware/auth.js';

router.post('/dialog',authenticate,Dialog);
router.post('/newDialog',authenticate,newDialog);
router.get('/allConversation',authenticate,allConversation)
router.get('/conversation/:id',authenticate,CheckConversation)
router.delete('/conversation/:id',authenticate,DeleteConversation)
router.get('/dialogHistory',authenticate,historyMessage)
router.post('/dialogAudio',authenticate,TTS_audioTransform)

export default router